import { type IClass } from "@lib/types";
import { JSX, type JSXElement } from "solid-js";

export type SpinnerVariant = 'border' | 'grow'
export type SpinnerColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark'

export interface SpinnerProps extends IClass, Exclude<JSX.HTMLAttributes<HTMLDivElement>, 'color'> {
    sm?: boolean
    variant?: SpinnerVariant,
    color?: SpinnerColor
}

export interface LoadingProps {
    show?: boolean
    spinner?: JSXElement,
    delay?: number
}
